Optimal. Leaf size=429 \[ \frac{\sqrt{c} \left (-2 c e \left (d \sqrt{b^2-4 a c}+a e+b d\right )+b e^2 \left (\sqrt{b^2-4 a c}+b\right )+2 c^2 d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}} \left (a e^2-b d e+c d^2\right )^2}-\frac{\sqrt{c} \left (-2 c e \left (-d \sqrt{b^2-4 a c}+a e+b d\right )+b e^2 \left (b-\sqrt{b^2-4 a c}\right )+2 c^2 d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b} \left (a e^2-b d e+c d^2\right )^2}+\frac{e^2 x}{2 d \left (d+e x^2\right ) \left (a e^2-b d e+c d^2\right )}+\frac{e^{3/2} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2} \left (a e^2-b d e+c d^2\right )}+\frac{e^{3/2} (2 c d-b e) \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{\sqrt{d} \left (a e^2-b d e+c d^2\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.4145, antiderivative size = 429, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {1170, 199, 205, 1166} \[ \frac{\sqrt{c} \left (-2 c e \left (d \sqrt{b^2-4 a c}+a e+b d\right )+b e^2 \left (\sqrt{b^2-4 a c}+b\right )+2 c^2 d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}} \left (a e^2-b d e+c d^2\right )^2}-\frac{\sqrt{c} \left (-2 c e \left (-d \sqrt{b^2-4 a c}+a e+b d\right )+b e^2 \left (b-\sqrt{b^2-4 a c}\right )+2 c^2 d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b} \left (a e^2-b d e+c d^2\right )^2}+\frac{e^2 x}{2 d \left (d+e x^2\right ) \left (a e^2-b d e+c d^2\right )}+\frac{e^{3/2} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2} \left (a e^2-b d e+c d^2\right )}+\frac{e^{3/2} (2 c d-b e) \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{\sqrt{d} \left (a e^2-b d e+c d^2\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1170
Rule 199
Rule 205
Rule 1166
Rubi steps
\begin{align*} \int \frac{1}{\left (d+e x^2\right )^2 \left (a+b x^2+c x^4\right )} \, dx &=\int \left (\frac{e^2}{\left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )^2}-\frac{e^2 (-2 c d+b e)}{\left (c d^2-b d e+a e^2\right )^2 \left (d+e x^2\right )}+\frac{c^2 d^2+b^2 e^2-c e (2 b d+a e)-c e (2 c d-b e) x^2}{\left (c d^2-b d e+a e^2\right )^2 \left (a+b x^2+c x^4\right )}\right ) \, dx\\ &=\frac{\int \frac{c^2 d^2+b^2 e^2-c e (2 b d+a e)-c e (2 c d-b e) x^2}{a+b x^2+c x^4} \, dx}{\left (c d^2-b d e+a e^2\right )^2}+\frac{\left (e^2 (2 c d-b e)\right ) \int \frac{1}{d+e x^2} \, dx}{\left (c d^2-b d e+a e^2\right )^2}+\frac{e^2 \int \frac{1}{\left (d+e x^2\right )^2} \, dx}{c d^2-b d e+a e^2}\\ &=\frac{e^2 x}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}+\frac{e^{3/2} (2 c d-b e) \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{\sqrt{d} \left (c d^2-b d e+a e^2\right )^2}+\frac{e^2 \int \frac{1}{d+e x^2} \, dx}{2 d \left (c d^2-b d e+a e^2\right )}+\frac{\left (c \left (2 c^2 d^2+b \left (b+\sqrt{b^2-4 a c}\right ) e^2-2 c e \left (b d+\sqrt{b^2-4 a c} d+a e\right )\right )\right ) \int \frac{1}{\frac{b}{2}-\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx}{2 \sqrt{b^2-4 a c} \left (c d^2-b d e+a e^2\right )^2}-\frac{\left (c \left (e (2 c d-b e)+\frac{2 c^2 d^2+b^2 e^2-2 c e (b d+a e)}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\frac{b}{2}+\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx}{2 \left (c d^2-b d e+a e^2\right )^2}\\ &=\frac{e^2 x}{2 d \left (c d^2-b d e+a e^2\right ) \left (d+e x^2\right )}+\frac{\sqrt{c} \left (2 c^2 d^2+b \left (b+\sqrt{b^2-4 a c}\right ) e^2-2 c e \left (b d+\sqrt{b^2-4 a c} d+a e\right )\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}} \left (c d^2-b d e+a e^2\right )^2}-\frac{\sqrt{c} \left (e (2 c d-b e)+\frac{2 c^2 d^2+b^2 e^2-2 c e (b d+a e)}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{b+\sqrt{b^2-4 a c}} \left (c d^2-b d e+a e^2\right )^2}+\frac{e^{3/2} (2 c d-b e) \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{\sqrt{d} \left (c d^2-b d e+a e^2\right )^2}+\frac{e^{3/2} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{2 d^{3/2} \left (c d^2-b d e+a e^2\right )}\\ \end{align*}
Mathematica [A] time = 0.825196, size = 354, normalized size = 0.83 \[ \frac{\frac{\sqrt{2} \sqrt{c} \left (-2 c e \left (d \sqrt{b^2-4 a c}+a e+b d\right )+b e^2 \left (\sqrt{b^2-4 a c}+b\right )+2 c^2 d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \sqrt{c} \left (2 c e \left (-d \sqrt{b^2-4 a c}+a e+b d\right )+b e^2 \left (\sqrt{b^2-4 a c}-b\right )-2 c^2 d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{e^2 x \left (e (a e-b d)+c d^2\right )}{d \left (d+e x^2\right )}+\frac{e^{3/2} \tan ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right ) \left (e (a e-3 b d)+5 c d^2\right )}{d^{3/2}}}{2 \left (e (a e-b d)+c d^2\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.03, size = 1141, normalized size = 2.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]